package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchPressureQualifiedStandardsMapper;
import com.ruoyi.system.domain.DispatchPressureQualifiedStandards;
import com.ruoyi.system.service.IDispatchPressureQualifiedStandardsService;

/**
 * 压力合格标准Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchPressureQualifiedStandardsServiceImpl implements IDispatchPressureQualifiedStandardsService 
{
    @Autowired
    private DispatchPressureQualifiedStandardsMapper dispatchPressureQualifiedStandardsMapper;

    /**
     * 查询压力合格标准
     * 
     * @param pressureQualifiedStandardsId 压力合格标准主键
     * @return 压力合格标准
     */
    @Override
    public DispatchPressureQualifiedStandards selectDispatchPressureQualifiedStandardsByPressureQualifiedStandardsId(Long pressureQualifiedStandardsId)
    {
        return dispatchPressureQualifiedStandardsMapper.selectDispatchPressureQualifiedStandardsByPressureQualifiedStandardsId(pressureQualifiedStandardsId);
    }

    /**
     * 查询压力合格标准列表
     * 
     * @param dispatchPressureQualifiedStandards 压力合格标准
     * @return 压力合格标准
     */
    @Override
    public List<DispatchPressureQualifiedStandards> selectDispatchPressureQualifiedStandardsList(DispatchPressureQualifiedStandards dispatchPressureQualifiedStandards)
    {
        return dispatchPressureQualifiedStandardsMapper.selectDispatchPressureQualifiedStandardsList(dispatchPressureQualifiedStandards);
    }

    /**
     * 新增压力合格标准
     * 
     * @param dispatchPressureQualifiedStandards 压力合格标准
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchPressureQualifiedStandards(DispatchPressureQualifiedStandards dispatchPressureQualifiedStandards)
    {
        return dispatchPressureQualifiedStandardsMapper.insertDispatchPressureQualifiedStandards(dispatchPressureQualifiedStandards);
    }

    /**
     * 修改压力合格标准
     * 
     * @param dispatchPressureQualifiedStandards 压力合格标准
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchPressureQualifiedStandards(DispatchPressureQualifiedStandards dispatchPressureQualifiedStandards)
    {
        return dispatchPressureQualifiedStandardsMapper.updateDispatchPressureQualifiedStandards(dispatchPressureQualifiedStandards);
    }

    /**
     * 批量删除压力合格标准
     * 
     * @param pressureQualifiedStandardsIds 需要删除的压力合格标准主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPressureQualifiedStandardsByPressureQualifiedStandardsIds(Long[] pressureQualifiedStandardsIds)
    {
        return dispatchPressureQualifiedStandardsMapper.deleteDispatchPressureQualifiedStandardsByPressureQualifiedStandardsIds(pressureQualifiedStandardsIds);
    }

    /**
     * 删除压力合格标准信息
     * 
     * @param pressureQualifiedStandardsId 压力合格标准主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPressureQualifiedStandardsByPressureQualifiedStandardsId(Long pressureQualifiedStandardsId)
    {
        return dispatchPressureQualifiedStandardsMapper.deleteDispatchPressureQualifiedStandardsByPressureQualifiedStandardsId(pressureQualifiedStandardsId);
    }
}
